<script type="text/javascript">

</script>

<?php


require './../cecndb.php';
$id=$_GET['id'];
$SQLstr = "SELECT GS01COAC,GS01NOAC,GS01DOCA FROM gs01regaca WHERE GS01COAC = '".$id."'";
$EjecutaCSQL = $conectarBD->query($SQLstr);
echo $SQLstr;
while ($registros = $EjecutaCSQL->fetch_row())
    {    
    	$vCOAC=$registros[0];
    	$vNOAC=$registros[1];
    	$vDOCA=$registros[2];
    }
 $conectarBD->close();
?>

<a href='index.php'>Lista ACADEMICOS</a>
<link rel="stylesheet" type="text/css" href="mtb.css" />
<div id="div01"  class="curved" >

<form name="Registroact" method="post" action="update.php" class="style" >         
<table id = "tab01">
     <tr>
	     <td>CODIGO</td>
         <td><label>
             <input type="text" name="Txt_GS01COAC" id="Txt_GS01COAC" value="<?php echo $id; ?>" readonly="readonly"  maxlength="15" /> 
         </label></td>
    </tr>
	<tr> <td>ACADEMICO</td>
         <td><label>
         <input type="text" name="Txt_GS01NOAC" id="Txt_GS01NOAC"  value="<?php echo $vNOAC;?>" maxlength="80" required='required'/> 
		 </label>
    </tr>
	<tr>
	     <td>DOCUMENTO</td>
         <td><label>
         <input type="text" name="Txt_GS01DOCA" id="Txt_GS01DOCA" value="<?php echo $vDOCA;?>"  maxlength="10" required='required' /> 
         </label></td>
     </tr>
	  <tr>
         <td></td>
         <td><label>
         <input type="submit" name="Agregar_Btn" id="Agregar_Btn" value="Cambiar" />
         </label></td>
     </tr>
		
 </table> 
</form>

</div>